export const rules = {
  name: [
    { require: true, message: '用户名是必填项', trigger: 'blur' },
    { pattern: /^[a-z0-9]{4,20}$/, message: '长度要在 4 - 20 个字符之间', trigger: 'blur' }
  ],
  password: [
    { require: true, message: '密码是必填项', trigger: 'blur' },
    { pattern: /^[a-z0-9]{4,20}$/, message: '长度要在 4 - 20 个字符之间', trigger: 'blur' }
  ]
}
